package java02;
import java.util.Scanner;
public class Java0202 {
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		while(true){
			StringBuilder s=new StringBuilder("");
			int n=in.nextInt();
			int x=in.nextInt();
			int y=in.nextInt();
			for(int i=0;i<n;i++){
				s.append(i);
			}
			System.out.println(s.substring(x,y));
		}
	}
}

		/*
		Scanner in=new Scanner(System.in);
		while(true){
			String s="";
			int n=in.nextInt();
			int x=in.nextInt();
			int y=in.nextInt();
			for(int i=0;i<n;i++){
				s=s+i;
			}
			System.out.println(s.substring(x,y));
			}
			*/